from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token
from . import views
from apps.user.views import admin_jwt_token
from apps.user import views

urlpatterns = [
    path('users/', views.UserRegisterView.as_view()),
    path('authorizations/', admin_jwt_token),
    path('sms_codes/<int:mobile>/', views.SMSCodeView.as_view()),
    path('user/label/', views.UserLabelAPIview.as_view()),
    path('user/', views.UserInfoView.as_view({'get':'list', 'put':'update'})),
    path('user/password/', views.ChangePsdView.as_view()),
    path('users/like/<int:pk>/', views.FollowUsersView.as_view()),


]


